Conversation
PR SummaryLow Risk Overview Updates Reviewed by Cursor Bugbot for commit ea533ab. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
👋 Codeowner Review RequestThe following codeowners have been identified for the changed files: Team reviewers: @nodejs/nodejs-website Please review the changes when you have a chance. Thank you! 🙏 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8819 +/- ##
==========================================
+ Coverage 74.20% 74.21% +0.01%
==========================================
Files 104 104
Lines 8847 8847
Branches 329 329
==========================================
+ Hits 6565 6566 +1
+ Misses 2280 2279 -1
Partials 2 2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Pull request overview
Updates the repo to stop tracking apps/site/next-env.d.ts (a locally-generated Next.js TypeScript env file that commonly produces noisy diffs) and adjusts type-linting to generate it as needed.
Changes:
- Ignore
apps/site/next-env.d.tsin.gitignoreto prevent local Next.js-generated diffs from being committed. - Remove the checked-in
apps/site/next-env.d.tsfrom the repository. - Update
apps/site’slint:typesscript to runnext typegenbeforetsc --noEmit.
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
apps/site/package.json |
Runs next typegen as part of lint:types so type-checking remains reliable without a committed next-env.d.ts. |
apps/site/next-env.d.ts |
Removes the previously committed generated file. |
.gitignore |
Ensures the generated apps/site/next-env.d.ts is never tracked again. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Build Size ComparisonSummary
Changes➕ Added Assets (1)
➖ Removed Assets (1)
|
|
@nodejs/web-infra can we fast-track this? |
|
@MattIPv4 did you ask for fast-tracking? |
|
I hadn't no, but no qualms with you asking for it. |
Description
Folks frequently run into diffs being generated on
next-env.d.tslocally when they run the site, and we've flip-flopped on the checked-in values a few times. I think it is easier to just ensure this file is never checked in, so it can contain whatever Next.js needs to generate for a person's local setup.Next.js itself also recommends that this value is not checked in: https://nextjs.org/docs/app/api-reference/config/typescript#next-envdts + https://nextjs.org/docs/app/api-reference/cli/next#next-typegen-options
If you run
next typegenornext build, you get this:But if you run
next dev, you get this:The
importline changes...Validation
File no longer checked in. CI still passes for type-checking.
Related Issues
N/A
Check List
pnpm formatto ensure the code follows the style guide.pnpm testto check if all tests are passing.pnpm buildto check if the website builds without errors.